﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UcChiTietTinNhan.ascx.cs" Inherits="STT.Profile.UserControlsGV.UcChiTietTinNhan" %>
<style>
    .txtTimKiem { 
        font-family:Arial;
        font-size:13px;
        color:#897d7d;
        padding:5px;
    }
</style>
<div class="span9">
<div id="biography" class="page home">
<div class="row" >
    <div class="col-md-7">
    <h1 class="title"><span id="ctl02_DtlIndex_Label1_0">Chi tiết tin nhắn giảng viên</span></h1>
    </div>                                 
</div>

<div class="widget-box widget-chat">
    <div class="widget-title">
        <span class="icon">
            <i class="icon-comment"></i>
        </span>
        <h5>Danh sách tin nhắn</h5>
    </div>
    <div class="widget-content nopadding">
        <div class="chat-users panel-right">
            <div class="panel-content nopadding">
                <ul class="contact-list">
                    <% if (tbUser != null) for (int i = 0; i < tbUser.Rows.Count; i++)
                           { %>
                    <li class="online"><a href="../Profile/Default.aspx?mod=CTTNGV1411&idmessage=<% Response.Write(tbUser.Rows[i]["TenDN"].ToString().Trim()); %>">
                        <img alt="" src="../uploads/avatar/<%Response.Write(tbUser.Rows[i]["Anh"].ToString() == "" ? "avatar-default.jpg" : tbUser.Rows[i]["Anh"].ToString().TrimEnd()); %>" />
                        <span><%Response.Write(tbUser.Rows[i]["TenNguoiDung"].ToString().Trim()); %></span></a>
                    </li>
                    <% } %>
                </ul>
            </div>
        </div>
        <div class="chat-content">
            <div class="chat-messages" id="chat-messages">
                <div id="chat-messages-inner">
                    <asp:ListView ID="lvTinNhan" runat="server" Style="width: 100%" 
                        DataKeyNames="IdGui,IdNhan,ThoiGianGui" 
                        OnItemCommand="lvTinNhan_ItemCommand" OnItemDeleting="lvTinNhan_ItemDeleting">
                        <ItemTemplate>
                            <p style="display: block;text-align:left">
                                <span class="msg-block">
                                    <img src="../uploads/avatar/<%# Eval("Anh").ToString().Trim()==""? "avatar-default.jpg" : Eval("Anh").ToString().Trim() %>"
                                        alt="img"><strong><%# Eval("TenNguoiGui").ToString().Trim()%></strong>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Delete"  >                               
                                        <img src="../../img/close.png" alt="Alternate Text" style="float:right; width:16px; height:16px; margin-top:3px; margin-left:5px;" title="Delete"/>
                                        </asp:LinkButton>
                                    <span class="time"><%# Eval("ThoiGianGui").ToString() %></span>
                                    <span class="msg"><%# Eval("NoiDung").ToString().Trim()%></span></span></p>
                        </ItemTemplate>
                    </asp:ListView>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
</div>